package com.newtouch.xcd.ma.vo;

import com.newtouch.xcd.common.validator.IsPhone;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MaAppointmentInformationReq implements Serializable {

    public static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "产品ID", required = true)
    @NotEmpty(message = "产品ID不能为空")
    private String productId;

    @ApiModelProperty(value = "客户姓名", required = true)
    @NotEmpty(message = "客户姓名不能为空")
    private String customerName;

    @ApiModelProperty(value = "联系电话 必须是手机号", required = true)
    @IsPhone
    private String customerPhone;

    @ApiModelProperty(value = "预约金额 只能输入数字", required = true)
    @NotEmpty(message = "预约金额不能为空")
    private String bookingAmount;

    @ApiModelProperty(value = "推荐人")
    private String reference;
}